<!-- include tpl=header -->
<!-- include tpl=block/picplayer -->
<!-- include tpl=block/stat info=$page_rs.statcount -->
<!-- php:$products = phpok('new_products') -->
<!-- if $products -->
<section class="container p-4">
	<div class="row m-2">
		<div class="col">
			<hr class="border-top opacity-50 mt-5" />
		</div>
		<div class="col text-center fs-1">
			{$products.project.title_format}
			<!-- if $products.project.entitle --><small class="d-block m-2">{$products.project.entitle}</small><!-- /if -->
		</div>
		<div class="col">
			<hr class="border-top opacity-50 mt-5" />
		</div>
	</div>
	<div class="row row-cols-1 row-cols-sm-2 row-cols-md-4">
		<!-- loop from=$products.rslist key=$key value=$value id=$tmpid -->
		<div class="col p-2">
			<div class="card p-2">
				<a href="{$value.url}" title="{$value.title}"><img class=" card-img-top" src="{$value.thumb.gd.thumb}" alt="{$value.title}" /></a>
				<div class="card-body p-2">
					<a href="{$value.url}" title="{$value.title}"><h5 class="text-nowrap text-truncate">{$value.title}</h5></a>
					<!-- if $products.project.is_biz -->
					<p class="card-text text-danger">{func price_format $value.price $value.currency_id $config.currency_id}</p>
					<!-- /if -->
				</div>
			</div>
		</div>
		<!-- /loop -->
	</div>
</section>
<!-- /if -->

<!-- php:$about = phpok('aboutus') -->
<!-- if $about -->
<section class="bg-light p-4">
	<div class="container">
		<div class="row m-2">
			<div class="col">
				<h2>{$about.title}<!-- if $about.entitle --><small>{$about.entitle}</small><!-- /if --></h2>
				<hr class="my-4" />
				<div class="content">{$about.note}</div>
				<div class="mt-4">
					<a class="btn btn-primary btn-lg" href="{$about.url}" role="button">查看详细信息</a>
				</div>
			</div>
			<!-- if $about.pic -->
			<div class="col">
				<img src="{$about.pic.filename}" class="w-100" />
			</div>
			<!-- /if -->
		</div>
	</div>
</section>
<!-- /if -->


<!-- 新闻资讯，涉及到图片及文字，所以左边的新闻右边就不重复调用，直接引用PHP文件 -->
<!-- include file=arc-index -->
<!-- if $arclist || $piclist -->
<section class="container p-4">
	<div class="row m-2">
		<div class="col">
			<hr class="border-top opacity-50 mt-5" />
		</div>
		<div class="col text-center fs-1">
			{$arclist.project.title_format}
			<!-- if $arclist.project.entitle --><small class="d-block m-2">{$arclist.project.entitle}</small><!-- /if -->
		</div>
		<div class="col">
			<hr class="border-top opacity-50 mt-5" />
		</div>
	</div>
	<div class="row pb-4 mb-4">
		<div class="col col-md-4"><!-- include tpl=block/index-news-picture rslist=$piclist.rslist slide_id=$piclist.project.id --></div>
		<div class="col">
			<!-- loop from=$arclist.rslist key=$key value=$value id=$tmpid -->
			<div class="media{if $tmpid.num != $tmpid.total} border-bottom{/if} mb-3">
				<!-- if $value.thumb -->
				<a href="{$value.url}" title="{$value.title}"><img src="{$value.thumb.gd.thumb}" class="align-self-start mr-3" alt="{$value.title}" /></a>
				<!-- /if -->
				<div class="media-body">
					<a href="{$value.url}" title="{$value.title}"><h5>{$value.title}</h5></a>
					<p class="text-2"><!-- if $value.note -->{func phpok_cut $value.note 100 …}<!-- else -->{func phpok_cut $value.content 100 …}<!-- /if --></p>
				</div>
			</div>
			<!-- /loop -->
		</div>
	</div>
</section>
<!-- /if -->

<!-- 联系方式 -->
<!-- php:$contactus = phpok('contactus') -->
<!-- if $contactus -->
<section class="bg-light p-4">
	<div class="container">
		<div class="row">
			<div class="col col-md-4">
				<div class="d-flex justify-content-between">
					<h2>{$contactus.title}<!-- if $contactus.entitle --><small>{$contactus.entitle}</small><!-- /if --></h2>
					<a href="{$contactus.url}" class="fs-6 mt-2">更多 <i class="fa fa-angle-right"></i></a>
				</div>
				<ul class="list-group mt-4">
					<!-- if $contactus.company --><li class="list-group-item"><i class="fa fa-building"></i> {$contactus.company}</li><!-- /if -->
					<!-- if $contactus.address --><li class="list-group-item"><i class="fa fa-map-marker"></i> {$contactus.address}</li><!-- /if -->
					<!-- if $contactus.email --><li class="list-group-item"><i class="fa fa-envelope-o"></i> {$contactus.email}</li><!-- /if -->
					<!-- if $contactus.zipcode --><li class="list-group-item"><i class="fa fa-check-circle-o"></i> {$contactus.zipcode}</li><!-- /if -->
					<!-- if $contactus.tel --><li class="list-group-item"><i class="fa fa-phone"></i> {$contactus.tel}</li><!-- /if -->
					<!-- if $contactus.fullname --><li class="list-group-item"><i class="fa fa-user"></i> {$contactus.fullname}</li><!-- /if -->
				</ul>
			</div>
			<div class="col col-md-8">
				<!-- if $contactus.map -->
				<div style="width:100%;height:420px" class="overflow-hidden"><img src="{$contactus.map.gd.auto}" style="width:100%;"/></div>
				<!-- /if -->
			</div>
		</div>
	</div>
</section>
<!-- /if -->
<!-- php:$link = phpok('link') -->
<!-- if $link && $link.rslist -->
<section class="container p-4">
	<div class="row m-2">
		<div class="col">
			<hr class="border-top opacity-50 mt-4" />
		</div>
		<div class="col text-center fs-1">
			{$link.project.title_format}
			<!-- if $link.project.entitle --><small class="d-block m-2">{$link.project.entitle}</small><!-- /if -->
		</div>
		<div class="col">
			<hr class="border-top opacity-50 mt-4" />
		</div>
	</div>
	<div class="row mb-4">
		<!-- loop from=$link.rslist key=$key value=$value -->
		<div class="col-sm-3 col-md-2 border m-1 p-1 text-center float-center">
			<a href="{$value.linkurl}" target="{$value.target}" title="{$value.sitename}">{$value.sitename}</a>
		</div>
		<!-- /loop -->
	</div>
</section>
<!-- /if -->
<!-- include tpl=footer -->